read values and keys from dictionaries in python